package 装饰模式;

public class Client {
    public static void main(String[] args) {
        SimplePhone phone = new SimplePhone();
        System.out.println("-------------简单手机接听------------------");
        phone.call();

        System.out.println("-------------升级为带振动手机接听------------------");
        JarPhone jarPhone = new JarPhone(phone);
        jarPhone.call();

        System.out.println("-------------升级为带振动+灯光手机接听------------------");
        ComplexPhone complexPhone = new ComplexPhone(jarPhone);
        complexPhone.call();
    }
}
